package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.DesignerProject;
import com.ecoolex.ying.space.entity.DesignerProjectExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DesignerProjectMapper {
    long countByExample(DesignerProjectExample example);

    int deleteByExample(DesignerProjectExample example);

    int deleteByPrimaryKey(Integer projectId);

    int insert(DesignerProject record);

    int insertSelective(@Param("record") DesignerProject record, @Param("selective") DesignerProject.Column ... selective);

    DesignerProject selectOneByExample(DesignerProjectExample example);

    List<DesignerProject> selectByExample(DesignerProjectExample example);

    DesignerProject selectByPrimaryKey(Integer projectId);

    DesignerProject selectByPrimaryKeyWithLogicalDelete(@Param("projectId") Integer projectId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DesignerProject record, @Param("example") DesignerProjectExample example, @Param("selective") DesignerProject.Column ... selective);

    int updateByExample(@Param("record") DesignerProject record, @Param("example") DesignerProjectExample example);

    int updateByPrimaryKeySelective(@Param("record") DesignerProject record, @Param("selective") DesignerProject.Column ... selective);

    int updateByPrimaryKey(DesignerProject record);

    int batchInsert(@Param("list") List<DesignerProject> list);

    int batchInsertSelective(@Param("list") List<DesignerProject> list, @Param("selective") DesignerProject.Column ... selective);

    int logicalDeleteByExample(@Param("example") DesignerProjectExample example);

    int logicalDeleteByPrimaryKey(Integer projectId);
}